package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitArticleRouter(Router *gin.RouterGroup) {
	ArticleRouter := Router.Group("article").Use(middleware.OperationRecord())
	{
		ArticleRouter.POST("createArticle", v1.CreateArticle)   // 新建Article
		ArticleRouter.DELETE("deleteArticle", v1.DeleteArticle) // 删除Article
		ArticleRouter.DELETE("deleteArticleByIds", v1.DeleteArticleByIds) // 批量删除Article
		ArticleRouter.PUT("updateArticle", v1.UpdateArticle)    // 更新Article
		ArticleRouter.GET("findArticle", v1.FindArticle)        // 根据ID获取Article
		ArticleRouter.GET("getArticleList", v1.GetArticleList)  // 获取Article列表
	}
}
